package com.sy.vo;

import org.springframework.stereotype.Component;

import java.sql.Date;

/**
 * @author JianBo-Sheng
 * @version 1.0
 * @date 2020/9/14 0011 11:00
 * @usage 作业实体类
 * @author  csd 添加了tostring方法
 */
@Component
public class HomeworkVo {
    //作业id
    private Integer id;
    //作业标题
    private String title;
    //创建时间
    private Date ctime;
    //结束时间
    private Date etime;
    //作业发布人
    private String username;
    //所属课程
    private String course;
    //教师id
    private Integer teacherid;
    //课程id
    private Integer courseid;

    public HomeworkVo() {
    }

    public HomeworkVo(Integer id, String title, Date ctime, Date etime, String username, String course, Integer teacherid, Integer courseid) {
        this.id = id;
        this.title = title;
        this.ctime = ctime;
        this.etime = etime;
        this.username = username;
        this.course = course;
        this.teacherid = teacherid;
        this.courseid = courseid;
    }

    public Integer getTeacherid() {
        return teacherid;
    }

    public void setTeacherid(Integer teacherid) {
        this.teacherid = teacherid;
    }

    public Integer getCourseid() {
        return courseid;
    }

    public void setCourseid(Integer courseid) {
        this.courseid = courseid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getEtime() {
        return etime;
    }

    public void setEtime(Date etime) {
        this.etime = etime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    @Override
    public String toString() {
        return "HomeworkVo{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", ctime=" + ctime +
                ", etime=" + etime +
                ", username='" + username + '\'' +
                ", course='" + course + '\'' +
                ", teacherid=" + teacherid +
                ", courseid=" + courseid +
                '}';
    }
}
